public abstract class Component {
    private String componentName;

    public Component(String cpmponentName){
        this.componentName=cpmponentName;
    }
    public abstract boolean addChild(Component child);
    public abstract boolean removeChild(Component child);
    public abstract Component getChild(int childIndex);
    public abstract void operation();

    public String getCpmponentName() {
        return componentName;
    }

    public void setCpmponentName(String cpmponentName) {
        this.componentName = cpmponentName;
    }
}
